<template>
  <div class="form-designer-group-container-warp">
    <common-group-title :title="config.label"></common-group-title>
    <div class="group-children-container">
      <slot></slot>
    </div>
  </div>
</template>

<script>
import CommonGroupTitle from '@/components/CommonGroupTitle'

export default {
  name: 'FormDesignerGroup',
  components: {
    CommonGroupTitle
  },
  props: {
    config: {
      type: Object,
      default: () => ({
        label: ''
      })
    }
  }
}
</script>

<style scoped lang="scss">
.form-designer-group-container-warp {

  .group-children-container {
    padding-left: 12px;
    box-sizing: border-box;
  }
}
</style>
